package ${escapeKotlinIdentifiers(packageName)}

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.xiaojianya.supei.config.RouterConfig
import com.zxn.presenter.view.BaseActivity
import ${applicationPackage}.R

/**
 *	
 * Created by zxn on ${.now}.
 */
@Route(path = ${activityClass}.${generateUrl("${activityClass}")})
class ${activityClass} : BaseActivity<Nothing>() {

	companion object {
		const val ${generateUrl("${activityClass}")} = RouterConfig.BASE_ROUTER + "${activityClass}"
        @JvmStatic
        fun jumpTo() {
            ARouter.getInstance().build(${generateUrl("${activityClass}")}).navigation()
        }
    }
    
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        ARouter.getInstance().inject(this)
    }

    override fun getLayoutResId(): Int = R.layout.${layoutName}
}

<#function generateUrl activityClass>
  <#return activityClass?upper_case>
</#function>
